package com.vallis.asfc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author vallis
 * @since 2020-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class EventRule extends Model<EventRule> {

    private static final long serialVersionUID = 1L;

    /**
     * 规则id
     */
    @TableId(value = "rule_id", type = IdType.AUTO)
    private Long ruleId;

    /**
     * 规则名字
     */
    private String ruleName;

    /**
     * 删除状态
     */
    @TableLogic
    private Integer deleted;

    /**
     * 规则描述
     */
    private String ruleDesc;

    /**
     * 0 两轮相加1两轮比大小2两轮3两轮4两轮5两轮
     */
    private Integer ruleType;


    @Override
    protected Serializable pkVal() {
        return this.ruleId;
    }

}
